<!DOCTYPE html
	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<title>iproteome商城-注册</title>
		<link rel="stylesheet" type="text/css" href="css/reset.css">
		<link rel="stylesheet" type="text/css" href="css/main.css">
		<script type="text/javascript" src="js/host.js"></script>
		<script type="text/javascript" src="js/vue-2.5.16.js"></script>
		<script type="text/javascript" src="js/axios-0.18.0.min.js"></script>
	</head>
	<body>
		<div class="register_con">
			<div class="l_con fl">
				<a href="index.html" class="reg_logo"><img src="images/logo.png"></a>
				<div class="reg_slogan">商品美 · 种类多 · 欢迎光临</div>
				<div class="reg_banner"></div>
			</div>

			<div class="r_con fr">
				<div class="reg_title clearfix">
					<h1>用户注册</h1>
					<a href="/login.html">登录</a>
				</div>
				<div class="reg_form clearfix" id="app" v-cloak>
					<form method="post" @submit.prevent="on_submit" v-cloak>
						<!-- {{ csrf_input }} -->
						<ul>
							<li>
								<label>用户名:</label>
								<input @blur="check_username" v-model="username" type="text" name="username"
									id="user_name">
								<span v-show="error_name" class="error_tip">[[error_name_message]]</span>
							</li>
							<li>
								<label>密码:</label>
								<input v-model="password" @blur="check_pwd" type="password" name="password" id="pwd">
								<span v-show="error_password" class="error_tip">请输入8-20位的英文字母、数字、下划线的密码</span>
							</li>
							<li>
								<label>确认密码:</label>
								<input @blur="check_cpwd" v-model="password2" type="password" name="password2"
									id="cpwd">
								<span v-show="error_check_password" class="error_tip">两次输入的密码不一致</span>
							</li>
							<li>
								<label>手机号:</label>
								<input @blur="check_phone" v-model="mobile" type="text" name="mobile" id="phone">
								<span v-show="error_phone" class="error_tip">[[ error_mobile_messgae ]]</span>
							</li>
							<li>
								<label>邮箱:</label>
								<input @blur="check_email" v-model="email" type="text" name="email" id="email">
								<span v-show="error_email" class="error_tip">[[ error_email_messgae ]]</span>
							</li>
							<li>
								<label>图形验证码:</label>
								<input type="text" v-model="image_code" @blur="check_image_code" name="image_code"
									id="pic_code" class="msg_input">
								<img :src="image_code_url" @click="generate_image_code" alt="图形验证码" class="pic_code">
								<span v-show="error_image_code" class="error_tip">[[ error_image_code_message ]]</span>
							</li>
							<!-- <li>
								<label>短信验证码:</label>
								<input type="text" v-model="sms_code" @blur="check_sms_code" name="sms_code"
									id="msg_code" class="msg_input">
								<a @click="send_sms_code" class="get_msg_code">[[ sms_code_tip ]] </a>
								<span class="error_tip" v-show="error_sms_code">[[ error_sms_code_message ]]</span>
							</li> -->
							<li class="agreement">
								<input v-model="allow"  type="checkbox" name="allow" id="allow" @change="check_allow">
								<label>同意”iproteome商城用户使用协议“</label>
								<span v-show="error_allow" class="error_tip">请勾选用户协议</span>
							</li>
							<li class="reg_sub">
								<input type="submit" value="注 册">
								<!-- <button>注册</button> -->
							</li>
						</ul>
					</form>
				</div>
			</div>
		</div>

		<!-- <div class="footer no-mp">
			<div class="foot_link">
				<a href="#">关于我们</a>
				<span>|</span>
				<a href="#">联系我们</a>
				<span>|</span>
				<a href="#">招聘人才</a>
				<span>|</span>
				<a href="#">友情链接</a>
			</div>
		</div> -->
		<script type="text/javascript" src="js/common.js"></script>
		<script type="text/javascript" src="js/register.js"></script>
	</body>
</html>
